package a.f.h.a.b;

import a.c.ab;
import a.c.d;
import a.c.q;
import a.f.h.a.a.e;
import a.f.h.a.a.f;
import a.f.h.a.a.g;
import a.f.h.a.a.h;
import a.f.h.a.a.i;
import a.f.h.a.a.k;
import a.f.h.a.a.o;

public class c
  implements a.f.h.a.a.m, h
{
  protected q a;
  protected a.f.h.a.a.b b;
  protected k c;
  private ab d;
  private a.c.n e;
  public static int f;
  
  public c(q paramq, a.f.h.a.a.b paramb)
  {
    this.a = paramq;
    this.b = paramb;
    this.c = this.b.b();
    this.d = new ab();
    this.e = this.a.C();
    c();
  }
  
  public void c()
  {
    this.c.a(this);
  }
  
  public void d()
  {
    this.b.a(this.c);
    this.a.a(this.e);
  }
  
  public Object b()
  {
    return new a();
  }
  
  public e a()
  {
    return this.c.a();
  }
  
  public void e()
  {
    boolean bool = b.i;
    int i = b.h;
    c();
    a.c.m localm = this.a.w();
    do
    {
      if (!localm.e()) {
        break;
      }
      d locald = localm.a();
      g localg1 = this.b.a(localm.a().e());
      g localg2 = this.b.a(localm.a().f());
      if (!bool) {
        if (localg1.a() != localg2.a()) {
          throw new RuntimeException("Replace edges by their representatives!");
        }
      }
      a locala = (a)this.c.a((f)localg1.a());
      locala.a(locald);
      localm.f();
    } while (i == 0);
  }
  
  public void a(g paramg)
  {
    a locala = (a)this.c.a(paramg);
    locala.a(this.a);
  }
  
  public void b(g paramg)
  {
    a locala = (a)this.c.a(paramg);
    locala.c(this.a);
  }
  
  public void g()
  {
    a.f.h.a.a.n.a(new a_(), this.c);
  }
  
  public void h()
  {
    a.f.h.a.a.n.a(new b_(), this.c);
  }
  
  public void i()
  {
    boolean bool = b.i;
    int i = b.h;
    g localg3 = null;
    g localg4 = null;
    a.c.m localm = this.a.w();
    do
    {
      if (!localm.e()) {
        break;
      }
      d locald1 = localm.a();
      g localg1 = this.b.a(locald1.e());
      g localg2 = this.b.a(locald1.f());
      if (!bool)
      {
        if (!o.a(localg1, localg2))
        {
          e[] arrayOfe = o.c(localg1, localg2);
          localg3 = (g)arrayOfe[0];
          localg4 = (g)arrayOfe[1];
          d locald2 = this.a.a(localg3.e(), localg4.e());
          this.d.add(locald2);
          this.e.a(locald2, locald1);
          this.a.f(locald1);
        }
        localm.f();
      }
    } while (i == 0);
  }
  
  public void j()
  {
    int i = b.h;
    a.c.m localm = this.d.l();
    do
    {
      if (!localm.e()) {
        break;
      }
      d locald = localm.a();
      this.a.g((d)this.e.get(locald));
      this.a.a(locald);
      localm.f();
    } while (i == 0);
  }
  
  public ab k()
  {
    return this.d;
  }
  
  public d a(d paramd)
  {
    return (d)this.e.get(paramd);
  }
  
  public class b_
    implements i
  {
    public static int a;
    
    public b_() {}
    
    public void a(e parame)
    {
      if (!b.i) {
        if (parame.f()) {
          return;
        }
      }
      a locala = (a)parame;
      locala.c(c.this.a);
    }
  }
  
  public class a_
    implements i
  {
    public static int a;
    
    public a_() {}
    
    public void a(e parame)
    {
      if (!b.i) {
        if (parame.f()) {
          return;
        }
      }
      a locala = (a)parame;
      locala.a(c.this.a);
    }
  }
}


/* Location:           E:\idea\
 * Qualified Name:     a.f.h.a.b.c
 * JD-Core Version:    0.7.0.1
 */